package service.Impl;

import dao.UserDao;
import entity.User;
import lombok.Getter;
import lombok.Setter;
import service.UserService;

/**
 * @author SuTing
 * @version 1.0
 * @date 2021/11/11 23:20
 */
@Getter
@Setter
public class UserServiceImpl implements UserService {

    //通过配置文件方式注入
    private UserDao userDao;

    @Override
    public void register(User user) {
        userDao.add(user);
    }
}
